package com.roamer.audition.server.config;

import com.roamer.audition.server.repository.base.BaseRepositoryFactoryBean;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;


/**
 * JPA 配置
 *
 * @author roamer
 * @version V1.0
 * @date 2019/9/3 5:31 下午
 */
@Configuration
@EnableTransactionManagement
@EntityScan(basePackages = "com.roamer.audition.server.entity")
@EnableJpaRepositories(basePackages = "com.roamer.audition.server.repository",
        repositoryFactoryBeanClass = BaseRepositoryFactoryBean.class)
public class JpaConfig {

}
